﻿<igRibbon:XamRibbonWindow x:Class="OneStop.UI.About"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:my="clr-namespace:System.Windows.Controls;assembly=PresentationFramework" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:igRibbon="http://infragistics.com/Ribbon"
    ResizeMode="NoResize"
    WindowStartupLocation="CenterScreen"
    Title="About" Height="262" Width="409" 
                          Icon="Images\Ribbon16\about.png">

    <igRibbon:RibbonWindowContentHost>
        <igRibbon:RibbonWindowContentHost.Ribbon>

            <igRibbon:XamRibbon Name="Ribbon" Visibility="Collapsed" Theme="Office2k7Black" Height="0">

            </igRibbon:XamRibbon>
        </igRibbon:RibbonWindowContentHost.Ribbon>

        <igRibbon:RibbonWindowContentHost.StatusBar>

            <StatusBar Height="15" Name="Status" Grid.Column="0" Grid.Row="5" VerticalAlignment="Bottom" Background="Gray">

            </StatusBar>

        </igRibbon:RibbonWindowContentHost.StatusBar>
        <Grid Background="White">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="70" />
                <ColumnDefinition  />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="70" />
                <RowDefinition />
            </Grid.RowDefinitions>

            <Image Source="Images\gears.png" Width="42" Height="42"></Image>
            <StackPanel Grid.Column="1" Margin="0,10">
                <Label FontSize="14" FontWeight="Bold">OneStop Decompression Software</Label>
                <Label x:Name="VersionLabel">Version {0}</Label>
            </StackPanel>
            <StackPanel Grid.Column="1" Grid.Row="1">
                <StackPanel.Resources>
                    <Style x:Key="CommonText" TargetType="{x:Type my:TextBlock}">
                        <Setter Property="Padding" Value="5,5,5,5" />
                    </Style>
                </StackPanel.Resources>
                <Label>Model: Bulhmann + Gradient Factor</Label>
                <TextBlock Style="{StaticResource CommonText}">Author: <Hyperlink TargetName="_blank" NavigateUri="http://damiensiviero.com">Damien Siviero</Hyperlink></TextBlock>
                <TextBlock Style="{StaticResource CommonText}">License: <Hyperlink NavigateUri="http://www.gnu.org/licenses/gpl.html">GNU General Public License</Hyperlink></TextBlock>
                <Label>Credits:</Label>
                <DockPanel>
                    <TextBlock TextWrapping="Wrap" Style="{StaticResource CommonText}">                    
                        The Bulhmann calculations in this program are based on those written by <Hyperlink NavigateUri="mailto:mvplan@wittig.net.au">Guy Wittig</Hyperlink> for <Hyperlink NavigateUri="http://users.tpg.com.au/wittig/diving/index.html">MV-Plan</Hyperlink>.
                    </TextBlock>
                </DockPanel>                
            </StackPanel>
        </Grid>
    </igRibbon:RibbonWindowContentHost>
</igRibbon:XamRibbonWindow>
